package com.coment.message.account;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/// 收款消息
@Getter
@AllArgsConstructor
@ToString
public class ReceiveInfo {
    /// 收款人
    private final Integer receiverId;

    /// 货币类型
    private final int currencyType;

    /// 金额
    private final double value;

    /// 备注
    private final String comment;

    public ReceiveInfo(Integer receiverId, int currencyType, double value, String comment) {
        this.receiverId = receiverId;
        this.currencyType = currencyType;
        this.value = value;
        this.comment = comment;
    }

    // ---------------------------------------
    /// 是否收款成功
    @Setter
    private boolean receive;

    /// 信息
    @Setter
    private String message;
}
